package com.yy.wga.pay.feign.api;

import com.yy.wga.common.core.dto.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.Map;

/**
 * 支付宝通知接口
 *
 * @author guochao
 * @date 2021/6/5 17:00
 */
@FeignClient(name = "AliPayNotifyFeign",
        url = "http://127.0.0.1:9100",
        path = "/api/pay/third/aliPay")
public interface AliPayNotifyFeign {
    /**
     * 异步通知
     * @param appId
     * @param params
     * @return
     */
    @PostMapping(value = "/pay/notify/{appId}")
    Result<String> payNotify(@PathVariable(name = "appId", required = false) String appId, Map<String,String> params);
}
